package com.eonmind.common.contract.enums.ai;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AiDrwaPlatformTypeEnum {
    MJ(0, "MJ", 1000);

    private final Integer code;
    private final String desc;
    private final Integer cost;

    public static AiDrwaPlatformTypeEnum getByCode(Integer platformType) {
        for (AiDrwaPlatformTypeEnum value : values()) {
            if (value.code.equals(platformType)) {
                return value;
            }
        }
        return null;
    }
}
